
<link rel="stylesheet" href="/css/otherInformation.css">
<div class="main layui-clear"
	style="min-height: 600px;position: relative;">
	<#include "/apps/user/otheruser/otherusermenu.html">
	<div class="ukefu-profile">
		<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin:10px 20px;">
			<#include "/apps/user/otheruser/centermenu.html">
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show" id="commentpages">
					<ul class="home-jieda" id="commenttopic">
						<#if topicCommentList??> 
							<#list topicCommentList as topicComment>
							<li class="mobile-display-none">
								<p>
									<span>${topicComment.updatetime?string('yyyy-MM-dd HH:mm:ss')}</span>
									在<a href="/topic/detail/${topicComment.dataid!''}.html#${topicComment.id!''}" target="_blank"><#if
										topicComment.topic??>${topicComment.topic.title!''}</#if></a>中评论：
								</p>
								<div class="home-dacontent"> ${(topicComment.content!'')?no_esc}</div>
							</li>
							<li class="pc-display-none mobile-answer">
								<div>
									<a href="/topic/detail/${topicComment.dataid!''}.html#${topicComment.id!''}" target="_blank">
										<span class="blockname">[${topicComment.topic.block.blockname!''}]</span>
										<#if topicComment.topic??>${topicComment.topic.title!''}</#if>
									</a>
									<span class="time">${topicComment.updatetime?string('yyyy-MM-dd HH:mm:ss')}</span>
									<div class="home-dacontent-mobile"> <span class="black">他的评论：</span>${(topicComment.content!'')?no_esc}</div>
								</div>
								
							</li>
							</#list> 
						</#if>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
	layui.use(['element', 'flow'], function(){
	  	var element = layui.element() ;
	  	
	  	var flow = layui.flow;
		flow.load({
		    elem: '#commentpages' //指定列表容器
		    ,done: function(page, next){ //到达临界点（默认滚动触发），触发下一页
		      //以jQuery的Ajax请求为例，请求下一页数据（注意：page是从2开始返回）
		      $.get('/user/comment/${user.id!''}.html?p='+page, function(res){
		        //假设你的列表返回在data集合中
		        
		        //执行下一页渲染，第二参数为：满足“加载更多”的条件，即后面仍有分页
		        //pages为Ajax返回的总页数，只有当前页小于总页数的情况下，才会继续出现加载更多
		        next($('#commenttopic').append(res) , $(res).length > 0);    
		      });
		    }
		});
	});
</script>